﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace SPAdvancedSearch.Utility
{
    static class ToolPartUtility
    {
        /// <summary>
        /// Creates a separator.
        /// </summary>
        /// <returns></returns>
        public static Control CreateSectionSeparator()
        {
            return new LiteralControl("<div style='width:100%' class='UserDottedLine'></div>");
        }

        /// <summary>
        /// Creates a section header for the toolpane.
        /// </summary>
        /// <param name="title"></param>
        /// <returns></returns>
        public static Control CreateSectionHeader(string title)
        {
            return new LiteralControl(string.Format("<div class='UserSectionTitle'>{0}</div>", title));
        }
    }
}
